
package com.fx.apartment.modules.dynamic.service;

import com.fx.apartment.common.base.BaseService;
import com.fx.apartment.modules.dynamic.entity.Dynamic;
import com.fx.apartment.modules.dynamic.vo.DynamicVO;
import com.baomidou.mybatisplus.core.metadata.IPage;

import javax.validation.constraints.NotNull;

/**
 * 朋友圈动态 服务类
 *
 * @author QinXueFeng
 * @since 2021-04-19
 */
public interface IDynamicService extends BaseService<Dynamic> {

	/**
	 * 自定义分页
	 *
	 * @param page
	 * @param dynamic
	 * @return
	 */
	IPage<DynamicVO> selectDynamicPage(IPage<DynamicVO> page, DynamicVO dynamic);

	boolean updateCommentNum(@NotNull Long dynamicId);
}
